package com.ruoyi.web.cloud_service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.UmsMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "memberService")
public interface MemServiceClient {
    @PostMapping("/dms-member/member")  // 对应 member-service 的 /member 接口
    AjaxResult addMember(@RequestBody UmsMember umsMember);
    @GetMapping("/dms-member/member/getMem")
    public UmsMember getInfo(@RequestParam("username")String username);
}
